package com.bingxue.edu.management.education.model.resp;

import com.bingxue.edu.management.education.model.entity.Lesson;
import com.bingxue.edu.management.education.model.entity.LessonStudent;
import com.mybatisflex.annotation.RelationManyToOne;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author panbo
 * @since 2024/11/13
 */
@Schema(description = "报名课次信息")
@EqualsAndHashCode(callSuper = true)
@Data
@TableRef(Lesson.class)
public class EnrollLessonResp extends Lesson {

    @Schema(description = "订单id")
    private String orderId;

    @Schema(description = "课次状态")
    private LessonStudent lessonStudent;

    @RelationManyToOne(selfField = "leadTeacherId", targetTable = "base_employee", targetField = "id", valueField = "name")
    @Schema(description = "主讲老师名称")
    private String leadTeacherName;

    @RelationManyToOne(selfField = "campusId", targetTable = "base_org", targetField = "id", valueField = "name")
    @Schema(description = "校区名称")
    private String campusName;

    @RelationManyToOne(selfField = "classroomId", targetTable = "edu_classroom", targetField = "id", valueField = "name")
    @Schema(description = "教室名称")
    private String classroomName;
}


